xen/arm: Check if the platform is not using ACPI before initializing Dom0less
authorJulien Grall <jgrall@amazon.com>
Sat, 26 Sep 2020 20:16:55 +0000 (21:16 +0100)
committerMaximilian Engelhardt <maxi@daemonizer.de>
Thu, 23 Mar 2023 19:40:49 +0000 (19:40 +0000)
commit8073b70e2fb6e6705a3a07ac93b3a755a519b964
tree2296c8675c138492f9364c85c4e76e8f82b81fe2
parent025f0ed6b0401a978d6a63b3a05279608b1a8957
xen/arm: Check if the platform is not using ACPI before initializing Dom0less

Dom0less requires a device-tree. However, since commit 6e3e77120378
"xen/arm: setup: Relocate the Device-Tree later on in the boot", the
device-tree will not get unflatten when using ACPI.

This will lead to a crash during boot.

Given the complexity to setup dom0less with ACPI (for instance how to
assign device?), we should skip any code related to Dom0less when using
ACPI.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Tested-by: Rahul Singh <rahul.singh@arm.com>
Reviewed-by: Rahul Singh <rahul.singh@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Elliott Mitchell <ehem+xen@m5p.com>
(cherry picked from commit dac867bf9adc1562a4cf9db5f89726597af13ef8)

Gbp-Pq: Name 0032-xen-arm-Check-if-the-platform-is-not-using-ACPI-befo.patch
xen/arch/arm/setup.c